package com.mybatis_plus.study.mybatis_plus_study_demo.controller;


import com.mybatis_plus.study.mybatis_plus_study_demo.entity.TUser;
import com.mybatis_plus.study.mybatis_plus_study_demo.service.ITUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fangjicai
 * @since 2020-04-08
 */
@RestController
@RequestMapping("/tUser")
public class TUserController {
    @Autowired
    private ITUserService userService;

    @RequestMapping("/all")
    public List<TUser> all(){
        List<TUser> list = userService.list();
        return list;
    }

}
